using System.Windows;
using System.Collections.ObjectModel;

namespace gcpN
{
    public partial class UpdateWindow : Window
    {
        public ObservableCollection<Module> Modules { get; } = new ObservableCollection<Module>();

        public UpdateWindow()
        {
            InitializeComponent();
            DataContext = this;
            // 初始化Modules集合
            Modules.Add(new Module { Name = "gcpN" });
            Modules.Add(new Module { Name = "GitHub Copilot Proxies" });
        }

        private void UpdateButton_Click(object sender, RoutedEventArgs e)
        {
            // 处理更新逻辑
            MessageBox.Show("更新已完成！", "提示", MessageBoxButton.OK);
            this.Close();
        }
    }
}